const router = require("koa-router")();
const ADModel = require("../../models/AD");
router.get("/api/AD",async ctx=>{
    // let {m} = ctx.request.params;
    var res = await ADModel.find({});
    ctx.body = {
        code:200,
        res:res[0],
        msg:`请求成功!共有数据${res.length}条。`
    }
})
module.exports = router;